﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Rapid
{
    public partial class UserControlPatientForm : UserControl
    {
        public UserControlPatientForm()
        {
            InitializeComponent();
            txtName.Text = Patient.name;
            txtID.Text = Patient.id;          
            rdoMonitoring.Checked = TestResults.isMonitoring;
        }

        private void txtName_MouseLeave(object sender, EventArgs e)
        {
            Patient.name = (sender as TextBox).Text;
        }

        private void txtID_MouseLeave(object sender, EventArgs e)
        {
            Patient.id = (sender as TextBox).Text;
        }

        private void rdoMonitoring_CheckedChanged(object sender, EventArgs e)
        {
            TestResults.isMonitoring = rdoMonitoring.Checked;
        }
    }
}
